<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="loanCss" jsFile="loanJs" current="贷款产品">
  	<div class="page-content">
  		<!-- BEGIN PAGE HEAD-->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
            <div class="page-title">
                <h1>申请贷款产品
                    <small>修改贷款产品</small>
                </h1>
            </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD-->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <a href="${context}/base/index_ftl">首页</a>
                <i class="fa fa-circle"></i>
            </li>
            <li>
                <span class="active">修改贷款产品</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="portlet light bordered">
                <div class="portlet-body form edit-form">
                    <!-- BEGIN FORM-->
                    <form action="#" id="createForm" class="createform">
                        <div class="form-body">
                        	<div class="alert alert-danger display-hide">
			                    <button class="close" data-close="alert"></button> 表单含有错误. 请检查. 
			                </div>
			                <div class="alert alert-success display-hide">
			                    <button class="close" data-close="alert"></button> 表单验证通过! 
			                </div>
                            <h4 class="form-section">公司基本信息</h4>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                    	
                                        <div class="input-group">
                                            <label class="input-group-addon">供应商名称</label>
                                            <input type="hidden" value="${loanVO.id}" name="id"  />
                                            <div class="input-group-content">
                                                <input type="text" id="business_name" name="business_name" class="form-control" placeholder="★供应商名称" value="${loanVO.business_name}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">产品名称</label>
                                            <div class="input-group-content">
                                                <input type="text" id="product_name" name="product_name" class="form-control" placeholder="★产品名称" value='${loanVO.product_name}' />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">产品类型</label>
                                            <div class="input-group-content">
                                                <input type="text" id="product_type" name="product_type" class="form-control" placeholder="★产品类型"  value="${loanVO.product_type}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">产品信息</label>
                                            <div class="input-group-content">
                                                <input type="text" id="product_info" name="product_info" class="form-control" placeholder="产品信息" value="${loanVO.product_info}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最小利率</label>
                                            <div class="input-group-content">
                                                <input type="text" id="min_interest_rate" name="min_interest_rate" class="form-control" placeholder="利率" value="${loanVO.min_interest_rate}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最大利率</label>
                                            <div class="input-group-content">
                                                <input type="text" id="max_interest_rate" name="max_interest_rate" class="form-control" placeholder="最高金额" value="${loanVO.max_interest_rate}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最小金额(万元)</label>
                                            <div class="input-group-content">
                                                <input type="text" id="min_money" name="min_money" class="form-control" placeholder="★利率" value="${loanVO.min_money}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最高金额(万元)</label>
                                            <div class="input-group-content">
                                                <input type="text" id="max_money" name="max_money" class="form-control" placeholder="★最高金额" value="${loanVO.max_money}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最小年限</label>
                                            <div class="input-group-content">
                                                <input type="text" id="min_term" name="min_term"  class="form-control" placeholder="★最长年限" value="${loanVO.min_term}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                 <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">最长年限</label>
                                            <div class="input-group-content">
                                                <input type="text" id="contacts" name="max_term"  class="form-control" placeholder="★最长年限" value="${loanVO.max_term}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                            	<!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">地区</label>
                                            <div class="input-group-content">
                                                <input type="text" id="address" name="address" class="form-control" placeholder="★地区" value="${loanVO.address}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">供应商地址</label>
                                            <div class="input-group-content">
                                                <input type="text" id="business_address" name="business_address" class="form-control" placeholder="★供应商地址" value="${loanVO.business_address}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                
                            </div>
                            <div class="row">
                            	<div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">联系方式</label>
                                           <div class="input-group-content">
                                                <input type="text" id="mobile" name="mobile" class="form-control" placeholder="★联系方式" value="${loanVO.mobile}">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                                <div class="col-md-6">
                                	<div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">状态</label>
                                            <div class="input-group-content">
                                                <select name="status" class="form-control input-inline">
                                                    <option value="">请选择</option>
                                                    <option value="DATA_AVAILABLE" <#if loanVO.id== ""||loanVO.status == "DATA_AVAILABLE">selected="selected"</#if>>启用</option>
                                                    <option value="DATA_LOCKING" <#if loanVO.status == "DATA_LOCKING">selected="selected"</#if>>停用</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                             <div class="row">
                             <div class="col-md-6">
                                	<div class="form-group">
                                        <div class="input-group">
                                            <label class="input-group-addon">关联产品</label>
                                            <div class="input-group-content">
                                                 <select class="form-control input-inline" placeholder="★选择关联产品" id="product_id_" name="product_id_" >
                                                 		<option value="${goodsVO.id}" selected>${goodsVO.name} </option>
					                             </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--/span-->
                            </div>
                            <div class="row">
                            	<!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group intro-content">
                                            <label class="input-group-addon">申请条件</label>
                                            <div class="input-group-content">
                                            	<textarea class="form-control" value="${loanVO.apply_info}" name="apply_info" id="apply_info" placeholder="★申请条件容">${loanVO.apply_info}</textarea>
                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="form-group">
                                        <div class="input-group intro-content">
                                            <label class="input-group-addon">所需材料</label>
                                            <div class="input-group-content">
                                            	<textarea class="form-control"  value="${loanVO.material_info}" name="material_info" placeholder="★所需材料">${loanVO.material_info}</textarea>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                                <!--/span-->
                            </div>
                            <div class="row">
                            	<!--/span-->
                                <div class="col-md-6">
                                    <div class="form-group intro-content">
                                        <div class="input-group">
                                            <label class="input-group-addon">详细信息</label>
                                            <div class="input-group-content">
                                            	<textarea class="form-control" name="info" value="${loanVO.info}" id="info" placeholder="★详细信息">${loanVO.info}</textarea>
                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                
                            </div>
                         </div>
                        <div class="form-actions top">
                            <div class="row">
                                <button type="submit" id="btnSubmit" class="btn green">保存</button>
                                <a href="${context}/loan_info/loan_view" class="btn default">返回</a>
                            </div>
                        </div>
                    </form>
                    <!-- END FORM-->
                </div>
            </div>
        </div>
        <!-- END PAGE BASE CONTENT -->
    </div>
</@page.mainTemplate>